home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 April
/
Gamestar_83_2006-04_dvd.iso
/
Dema
/
demowot_english.exe
/
Script
/
Source
/
Behavior test.sma
< prev
next >
Wrap
Text File
|
2005-03-11
|
925b
|
40 lines
#include "script.inc"
public main() // A palya belepesi pontja, helyette a PostGameStart fuggvenyt hasznald
CommonAKMain();
public PostGameStart()
{
CommonAKInit();
// AddAKEntityEvent( "TestEventHandler", ANY_ENTITY, TEST_EVENT );
new akarmi[10] = "wpb1";
CmdMoveToEnt( GetEntity( "ax_pziif1" ), akarmi, Q_CYCLE );
CmdThrowEvent( GetEntity( "ax_pziif1" ), Q_CYCLE, 1 );
akarmi = "wpb2";
CmdMoveToEnt( GetEntity( "ax_pziif1" ), akarmi, Q_CYCLE );
CmdThrowEvent( GetEntity( "ax_pziif1" ), Q_CYCLE, 2 );
akarmi = "wpb3";
CmdMoveToEnt( GetEntity( "ax_pziif1" ), akarmi, Q_CYCLE );
CmdThrowEvent( GetEntity( "ax_pziif1" ), Q_CYCLE, 3 );
AddAKEntityEvent( "Kiir", ANY_ENTITY, CMD_EVENT );
}
public TestEventHandler()
{
CallUserEventEntity( UE_PATROLSTART, GetEntity( "tmp_patrol" ));
}
public Kiir()
{
ShowShortMessageP1( "Event, id: %d.", GetMsgParamInt());
}